package com.example.moneygrosService.requests;

import android.util.Log;

import com.example.moneygrosService.requests.MoneyGrosRequest.REQUEST_TYPE;

public class MoneyGrosRequestProcessing {
	private static final String TAG = "MoneyGrosRequestProcessing";

	public static void processRequest(MoneyGrosRequest request){				
		Log.v(TAG, "processRequest");
		
		switch (request.getType()){
		case REQUEST_TYPE.BALANCE_MODIFICATION_REQ:
			Log.v(TAG, "BALANCE_MODIFICATION_REQ.");
			
			break;
		case REQUEST_TYPE.BALANCE_MODIFICATION_ACK:
			Log.v(TAG, "BALANCE_MODIFICATION_ACK.");
			
			break;
		case REQUEST_TYPE.PROFILE_PUBLICATION:
			Log.v(TAG, "PROFILE_PUBLICATION.");	
			
			MoneyGrosProfilePublicationRequest profilePublicationRequest = (MoneyGrosProfilePublicationRequest) request;
			profilePublicationRequest.process();

			break;
		default:
			Log.v(TAG, "Type de requête inconnue.");		
		}
	}
}
